<?php

/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;
$this->title = '修改个人信息';
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="page-title">
  <div>
    <h1><i class="fa fa-edit"></i> 修改个人信息</h1>
    <ul class="breadcrumb side">
      <li><i class="fa fa-home fa-lg"></i></li>
      <li><span>个人信息管理</span></li>
      <li class="active"><a href="<?=Url::toRoute('site/editprofile')?>">修改个人信息</a></li>
    </ul>
  </div>
</div>
<div class="card">
  <?php $form = ActiveForm::begin(); ?>
      <?php
        if(isset($tip)&&$tip===true){
          if($model->hasErrors()){
      ?>
            <div class="alert alert-danger" role="alert">
              <?php
                  foreach($model->getErrors("") as $key=>$value){
                    echo $value."<br>";
                  }
              ?>
            </div>
      <?php
          }else{
      ?>
            <div class="alert alert-success" role="alert">修改成功！</div>
      <?php
          }
        }
      ?>
  <div class="form-group">
    <?=$form->field($model, 'name',[
      'inputOptions'=>[
        'class'=>'form-control',
        'readonly'=>'true'
        ]
      ]);?>
  </div>
  <div class="form-group">
    <?=$form->field($model, 'realname')?>
  </div>
  <div class="form-group">
    <?=$form->field($model, 'sfzid')?>
  </div>
  <div class="form-group">
    <?=$form->field($model, 'bankcardid')?> <!--国字头三大银行卡卡号(中国银行、中国农业银行、中国建设银行可以选择其中一家或者三个都要)-->
  </div>
  <div class="form-group">
    <?=$form->field($model, 'opencardbank')?>
  </div>
  <div class="form-group">
    <?=$form->field($model, 'alipay')?>
  </div>
  <div class="form-group">
      <?= Html::submitButton('提交', ['class' => 'btn btn-warning']) ?>
  </div>

  <?php ActiveForm::end(); ?>
</div>
